package com.swx.identityservice.dtos.dept;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("编辑部门Dto")
public class UpdateDeptInputDto {

    @NotNull
    @ApiModelProperty(value = "角色id",example ="2")
    private Integer id;

    @Transient
    private String affiliatedunitid;

    @ApiModelProperty(value = "顶级id，所属单位id",example = "1")
    @Column(name = "TopId")
    private String topid;

    @ApiModelProperty(value = " 部门名称",example = "公诉一处")
    @NotNull
    @Column(name = "Title")
    private String title;

    @NotNull
    @ApiModelProperty(value = "部门简称",example = "公诉一处")
    @Column(name = "AbbreviationDept")
    private String abbreviationdept;

    @ApiModelProperty(value = "父id",example = "1")
    @Column(name = "Pid")
    private Integer pid;

    @ApiModelProperty(value = "部门id集合",example = "2,3")
    @Transient
    private Integer[] deptids;

    @ApiModelProperty(value = "上级部门名称",example = "检察院")
    @Transient
    private String pname;

    @Transient
    @ApiModelProperty(value = "单位名称",example = "高检院")
    private String affiliatedunitname;

    @ApiModelProperty(value = "案件号部门简称",example = "案件号部门简称")
    @Column(name = "CaseNumberAbbreviationDept")
    private String casenumberabbreviationdept;

    @ApiModelProperty(value = "文号部门简称",example = "文号部门简称")
    @Column(name = "WHAbbreviationDept")
    private String whabbreviationdept;

    @ApiModelProperty(value = "排序",example = "1")
    @Column(name = "SortNum")
    private Integer sortnum;

    @ApiModelProperty(value = "备注",example = "备注:当前部门处长职位空缺，欢迎大家踊跃参与选拔")
    @Column(name = "Remark")
    private String remark;

    @NotNull
    @ApiModelProperty(value = "1 代表临时机构 ，2代表 承办部门  3代表 案管部门",example = "1")
    @Column(name = "SelectDept")
    private String selectdept;

    @NotNull
    @ApiModelProperty(value = "办理业务集合",example = "1,2,3")
    @Column(name = "HandleBusiness")
    private Integer[] handleBusiness;

    @NotNull
    @ApiModelProperty(value = "统计部门映射集合",example = "1,2,3")
    @Column(name = "StatisticalDeptMapping")
    private Integer[] statisticaldeptmapping;
}
